<?php
namespace app\admin\model;
use think\Model;
use think\Db;

class Login extends model
{
	public function login()
	{
		$data= \input("post.");
		$res = db("user")->where("user",$data["user"])->find();
		if(empty($res)){
			return false;
		}else{
			if($res["pwd"]==$data["pwd"]){
				return true;
			}else{
				return false;
			}
		}
	}
}
?>